package main

import (
	"fmt"
)

type Dog2 struct {
	name string
	age  int
	sex  string
}

func Dog2InitFunc(name string, age int, sex string) *Dog2 {
	return &Dog2{
		name: name,
		age:  age,
		sex:  sex,
	}
}

func (d *Dog2) setDogName(name string) {
	d.name = name
}

func (d Dog2) getDogName() {
	fmt.Println(d.name)
}
